package com.gl.emms.whale.app;

/**
 * 
 * @version 1.0
 */
public interface Constant {

	//超时时间
	public static final int LOGIN_TIMEOUT = 30;
	
	
	// APP_ID 替换为你的应用从官方网站申请到的合法appId
	public static final String APP_ID = "wx438e587e7e536511";
	/** 商家向财付通申请的商家id */
	public static final String PARTNER_ID = "1221961801";

	public static final String SAVE_SYSTEMSETTING = "systemsettings";//保存系统设置
	public static final String SAVE_USERINFO = "userinfo";//保存用户信息的xml文件名
	
	public static final String SAVE_BILL = "userbill";//保存用户信息的xml文件名
	//isFirst:是否第一次登陆            
	public static final String SAVE_NOVICEGUIDE = "noviceguide";//保存新手向导信息
	//服务端web地址
	public static final String SERVER_DOMAINNAME = "ganlinux.eicp.net";
	//服务端IP地址
	//注意，这里的端口不是tomcat的端口，CIM端口在服务端spring-cim.xml中配置的，没改动就使用默认的23456
	public static final int CIM_SERVER_PORT = 9000;
	//public static final int CIM_SERVER_PORT = 9015;
	public static final String DOWNLOAD_URL = "http://pan.baidu.com/s/1dDktK6P";//下载地址

	public static final String IMAGE_PATH = "/sdcard/whale";//头像文件夹
	public static final String IMAGE_NAME = "headImage.png";//头像名字

	//功能码
	public static final String TYPE_REGISTER_RESPONSE = "register_response";//注册响应
	public static final String TYPE_REGISTER_LOGIN = "login_response";//登陆响应
	public static final String TYPE_FORCECONTROL_RESPONSE = "forcecontrol_response";//阀门强制控制响应
	public static final String TYPE_CHANGEPASSWORD_RESPONSE = "changepwd_response";//阀门强制控制响应
	public static final String TYPE_AUTOCONTROL_RESPONSE = "timingcontrol_response";//阀门强制控制响应
	public static final String TYPE_REPORT_RESPONSE = "reportrepair_response";//阀门强制控制响应
	
	public static final String CODE_REGISTER = "register_code";//注册成功
	public static final String CODE_LOGIN = "login_code";//登陆
	public static final String CODE_FORCECONTROL = "controlresult";//登陆
	//注册码register_code
	public static final String REGISTER_SUCCESS = "000000";//注册成功
	public static final String REGISTER_USERNAMEREPEAT = "000002";//注册失败，用户名重复
	public static final String REGISTER_ROOMREPEAT = "000003";//注册失败，房间被注册过
	public static final String REGISTER_CARDWRONG = "000004";//注册失败,卡号错误
	public static final String REGISTER_VERRIFICATIONCODEWRONG = "000005";//注册失败,验证码错误
	//登陆码login_code
	public static final String LOGIN_SUCCESS = "000000";//登陆成功
	public static final String LOGIN_USERLOGINREPEAT = "000002";//登陆失败，用户名错误
	public static final String LOGIN_FAIL = "000003";//登陆失败，户重复登陆


	//阀门控制control_code
	public static final String CONTROL_ON = "1";//登陆成功
	public static final String CONTROL_OFF = "0";//登陆成功

	//登陆码login_code
	public static final String FORCECONTROL_SUCCESS = "000000";//登陆成功
	//报修码
	public static final String REPORT_TYPE_TEXT = "1";//登陆成功
	public static final String REPORT_TYPE_CALL = "2";//登陆成功
	public static final String REPORT_PHONENUM = "tel:010-82793797";//登陆成功
	
	//修改密码 返回状态
	public static final String CHANGEPASSWORD_STATE = "changepwd_state";//修改密码成功
	public static final String CHANGEPASSWORD_SUCCESS = "000000";//修改密码成功
	public static final String CHANGEPASSWORD_FAIL_NOUSER = "000001";//失败,无此用户
	public static final String CHANGEPASSWORD_FAIL_WRONG = "000002";//失败，原密码输入有误
	

}
